Relationship DAO, Servlet, JSP and POJO [closed]

Posted by John Hendrik on Programmers See other posts from Programmers or by John Hendrik
Published on 2012-10-31T14:51:39Z Indexed on 2012/10/31 17:13 UTC
Read the original article Hit count: 269

Filed under:
|

Possible Duplicate:
Relationship DAO, Servlet, JSP and POJO

I want to implement a JSP, POJO, DAO and Servlet in my J2EE program. However, I don't fully understand how the relationship between these elements should be. Is the following (MVC) setup the right way to do it?

  • Main class creates servlet(controller)
  • Servlet has a DAO defined in its class
  • DAO has a POJO defined in its class
  • Servlet communicates with the view (JSP page)

Please give your feedback.

© Programmers or respective owner

Related posts about java-ee

Related posts about dao